package com.wwj.core.wawa.service;

import com.github.pagehelper.Page;
import com.wwj.core.wawa.entity.PlayerRecharge;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

public interface IPlayerRechargeService {
    String dealPlayerRechargeByBBN(Integer playerId, Integer itemId, int payType, Integer couponId);

    Map<String, Object> dealPlayerRechargeByApp(Integer playerId, Integer itemId, int payType, Integer couponId);

    boolean dealRechargeComplete(Integer playerId, String orderNo, boolean success, int transState) throws Exception;

    Page<PlayerRecharge> findByPage(int offset, int limit, Map<String, Object> params);

    PlayerRecharge findByTradeNo(String tradeNo);

    String dealWxRechargeComplete(HttpServletRequest request) throws IOException;

    void dealCancelPlayerRecharge(String tradeNo);
}
